-- GENERATED SPELL FOR [Nexus-Prince Razaan] --


function spell0_21057(pUnit, Event) --@Energy Flux,Self--
pUnit:FullCastSpellOnTarget(35924,pUnit)
pUnit:RegisterEvent('Sorts_21057', 8000, 1)
end

function Sorts_21057(pUnit, Event)
local choix_sorts_21057 = math.random(0, 0)
if choix_sorts_21057 == 0 then
pUnit:RegisterEvent('spell0_21057', 1, 1)
end
end

function mob21057_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21057', math.random(1500, 3000), 1)
end

function mob21057_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21057_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21057_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21057, 1, 'mob21057_Action')
RegisterUnitEvent(21057, 2, 'mob21057_Leave')
RegisterUnitEvent(21057, 3, 'mob21057_Kill')
RegisterUnitEvent(21057, 4, 'mob21057_Die')
